import http from "../utils/request";

export function getChatLists(val){
	return http({
		 url: '/chat-module/chat/getMsgs',
		    method: 'GET',
			params: val
	})	
}

export function getHRAndComInfo(val){
	return http({
		 url: '/user-module/userChat/selectHRInfo',
		    method: 'GET',
			params: val
	})	
}

//进入聊天页面后，聊天信息获取，参数是双方基础信息
export function getConcretChat(val){
    return http({
        url:'/chat-module/chat/getConcretChat',
        method:'GET',
        params:val
    })
}

//存储聊天记录，参数是聊天记录do
export function write(val){
    return http({
        url:'/chat-module/chat/write',
        method:'GET',
        params:val
    })
}

// 草稿修改
export function updateDraft(val){
    return http({
        url:'/chat-module/chat/updateDraft',
        method:'GET',
        params:val
    })
}

//获取草稿
export function getDraft(val){
    return http({
        url:'/chat-module/chat/getDraft',
        method:'GET',
        params:val
    })
}